<template>
    <div class="main_box" style="padding:10px">
      <div class="add_wrap">
        <el-form label-width="200px" v-if="dataInfo">
          <div class="tit">
            <h2>基础信息</h2>
            <el-button type="success" plain size="small" icon="fa fa-mail-forward" @click="returnList">返回</el-button>
          </div>
          <el-row>
            <el-form-item label="分类名称:">
              <div class="business-classify_name" v-html="dataInfo.classifyName"></div>
            </el-form-item>
            <el-form-item label="商户:">
              <span>{{ dataInfo.businessName }}</span>
            </el-form-item>
            <el-form-item label="排序（倒序）:">
              <span>{{ dataInfo.sort }}</span>
            </el-form-item>
          </el-row>
        </el-form>
      </div>
    </div>
  </template>

  <script>
    import BusinessClassifyApi from '@/api/business/businessClassify';

  export default {
    data() {
      return {
        dataInfo: {},
        list:[],
      };
    },
    computed: {
    },
    mounted() {
      this.getData()
    },
    methods: {
      getData() {
        BusinessClassifyApi.getBusinessClassifyInfo({ id: this.$route.query.id }).then(res => {
          this.dataInfo = res.data
        })
      },
      returnList() {
        this.$store.dispatch('delView', this.$route);
        this.$router.push({ path: '/business/businessClassifyManagement' })
      }
    },

  }

  </script>
<style lang="scss" scoped>
@import "@/assets/css/views/add.scss";
</style>

  <style lang="scss" scoped>
  .img-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 3px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;

    .el-image{
      width: 100%;
      &::v-deep img{
        height:auto
      }
    }
  }
  .business-classify_name{
    ::v-deep p{
      margin: 0;
       img{
        vertical-align: middle;
        height: 16px;
        width: auto;
      }
    }
  }
  </style>
